<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用户中心_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user.css" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user_common.css" />
		<style type="text/css">
			.user-right .tabmenu{margin-bottom: 0;}
			.phone-icon {
				background: url(/themes/wnsc_moblie/Public/images/phone.png) no-repeat center center;
				background-size: auto 20px;
			}
			.weixin-icon{ background:url(/themes/wnsc_moblie/Public/images/weixin.png) no-repeat center center;background-size: auto 20px;}
			.qq-icon{ background:url(/themes/wnsc_moblie/Public/images/qq.png) no-repeat center center;background-size: auto 20px;}
			.weibo-icon{ background:url(/themes/wnsc_moblie/Public/images/weibo.png) no-repeat center center;background-size: auto 20px;}

		</style>
	</head>

	<body>

		<tc_include file="Public:nav" />
		<div class="w990" id="content" style="background: none;">
			<div class="margin-w1210 clearfix">
				<div class="w">
					<div class="breadcrumb clearfix">
						<a href="/" class="index">首页</a> <span class="crumbs-arrow">&gt;</span> <span class="last">用户中心</span></div>
				</div>
				<div class="blank"></div>
				<tc_include file="Public:user_left" />
				<div class="user-right">
					<div class="box">
						<div class="tabmenu">
							<ul class="tab pngFix">
								<li class="first active">关联账户</li>
							</ul>
						</div>
						<div class="alert alert-success">
							<h4>操作提示：</h4>
							<ul>
								<li>您可进行第三方关联账户的绑定</li>
							</ul>
						</div>
					
						<div>
							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table">
								
								<tbody class="close-order" id="list_address">
									
									<tr class="order-bd last">
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">
												<em class="phone-icon" style="display: block;float: left; width: 8%; height: 25px; margin-right: 3px;"></em>
												<h3 style="float: left;height: 25px;line-height: 25px;">手机 <notempty name="user_info['phone']">({$user_info['phone']})</notempty></h3>
											</div>
										</td>
										
										<td align="center" class="baobei no-border-right order_goods_info" style="width:150px">
										<php>if($user_info['phone']==null||$user_info['phone']==''){</php>
											<a href='/user/bd_phone' class="main-btn main-btn-large"  style="background: #000;">绑定</a>
										<php>	}else{ </php>
											<a href='javascript:;' class="main-btn main-btn-large"  style="background: #999;">不可解绑</a>
										<php>	} </php>
												
										</td>
									</tr>
									
									<tr class="order-bd last">
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">
												<em class="qq-icon" style="display: block;float: left; width: 8%; height: 25px; margin-right: 3px;"></em>
												<h3 style="float: left;height: 25px;line-height: 25px;">qq <notempty name="user_info['qq_name']">({$user_info['qq_name']})</notempty></h3>
											</div>
										</td>
										
										<td align="center" class="baobei no-border-right order_goods_info" style="width:150px">
											<php>if($user_info['qq_openid']==null||$user_info['qq_openid']==''){</php>
													<a href="javascript:void(0);" onclick='toQzoneLogin()' data-id="qq" class="main-btn main-btn-large"  style="background: #000;">绑定</a>
											<php>	}else{ </php>
														<a href='javascript:;' class="main-btn main-btn-large"  style="background: #999;">不可解绑</a>
											<php>	} </php>
											
										</td>
									</tr>
									
									<tr class="order-bd last">
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">
												<em class="weixin-icon" style="display: block;float: left; width: 8%; height: 25px; margin-right: 3px;"></em>
												<h3 style="float: left;height: 25px;line-height: 25px;">微信 <notempty name="user_info['wx_name']">({$user_info['wx_name']})</notempty></h3>
											</div>
										</td>
										
										<td align="center" class="baobei no-border-right order_goods_info" style="width:150px">
												<php>if($user_info['wx_unionid']==null||$user_info['wx_unionid']==''){</php>
													<a href='javascript:;' class="main-btn main-btn-large wx_login"  style="background: #000;">绑定</a>
											<php>	}else{ </php>
														<a href='javascript:;' class="main-btn main-btn-large"  style="background: #999;">不可解绑</a>
											<php>	} </php>
										</td>
									</tr>
									
									<tr class="order-bd last">
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">
												<em class="weibo-icon" style="display: block;float: left; width: 8%; height: 25px; margin-right: 3px;"></em>
												<h3 style="float: left;height: 25px;line-height: 25px;">微博 <notempty name="user_info['wb_name']">({$user_info['wb_name']})</notempty></h3>
											</div>
										</td>
										
										<td align="center" class="baobei no-border-right order_goods_info" style="width:150px">
												<php>if($user_info['wb_openid']==null||$user_info['wb_openid']==''){</php>
													<a href="https://api.weibo.com/oauth2/authorize?client_id=<?=C('wb_login.WEIBO_APP_KEY')?>&redirect_uri=<?=C('wb_login.WEIBO_PC_URL')?>&response_type=code&code=<?=md5(time())?>"  class="main-btn main-btn-large"  style="background: #000;">绑定</a>
											<php>	}else{ </php>
														<a href='javascript:;' class="main-btn main-btn-large"  style="background: #999;">不可解绑</a>
											<php>	} </php>
										</td>
									</tr>
									
								</tbody>
							</table>
						</div>
					
					</div>
				</div>

			</div>
		</div>
		<div style="clear: both;"></div>
			<tc_include file="Public:footer" />
		<script>
			$(function(){
				$('.wx_login').click(function(){
					layer.open({
					  type: 2,
					  title: '微信绑定页',
					  shadeClose: true,
					  shade: 0.8,
					  area: ['40%', '55%'],
					  content: '/user/weixin_login' //iframe的url
					}); 
				})
				
			})
			var childWindow;
            function toQzoneLogin()
            {
                childWindow = window.open("/user/qqlogin","TencentLogin","width=650,height=520,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
            } 
            
            function closeChildWindow()
            {
                childWindow.close();
            }
			
		</script>
	

	</body>

</html>